package cn.ggsaas.base.enums;

import lombok.Getter;

/**
 * 脱敏枚举
 * @author liyuzhen
 * @date 2019/9/24 11:35 上午
 */

@Getter
public enum DesensitizeEnum {
    //第一个写脱敏名称 before与after为前后要保留的的字的数量
    NAME("名字", 1, 0),
    PHONE("电话", 3, 4),
    ID_CARD("身份证", 3, 4),
    ;
    private String name;
    private int before;
    private int after;

    DesensitizeEnum(String name, int before, int after) {
        this.name = name;
        this.before = before;
        this.after = after;
    }
}
